package com.me.modules.sys.service.impl;

import com.me.modules.sys.dao.ExtendFieldDao;
import com.me.modules.sys.entity.ExtendField;
import com.me.modules.sys.service.ExtendFieldService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service
public class ExtendExtendFieldServiceImpl implements ExtendFieldService {


    @Resource
    private ExtendFieldDao fieldDictionaryDao;

    @Override
    public ExtendField queryObject(Long id) {
        return fieldDictionaryDao.queryObject(id);
    }

    @Override
    public List<ExtendField> queryList(Map<String, Object> map) {
        return fieldDictionaryDao.queryList(map);
    }

    @Override
    public List<ExtendField> queryListByBean(ExtendField entity) {
        return fieldDictionaryDao.queryListByBean(entity);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return fieldDictionaryDao.queryTotal(map);
    }

    @Override
    public int save(ExtendField fieldDictionary) {


        return fieldDictionaryDao.save(fieldDictionary);
    }

    @Override
    public int update(ExtendField fieldDictionary) {
        return fieldDictionaryDao.update(fieldDictionary);
    }

    @Override
    public int delete(Long id) {
        return fieldDictionaryDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return fieldDictionaryDao.deleteBatch(ids);
    }


    @Override
    public List<ExtendField> queryByTableName(String tableName) {
        return fieldDictionaryDao.queryByTableName(tableName);
    }
}
